<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'filelist.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="css/bootstrap.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>

<body>
<h1>文件列表</h1>
	<a href="files.jsp?father=${fiel.id }">创建文件夹</a>
<table class="table" width="700px">
	<tr>
		<th>大小(byte)</th>
		<th>上传时间</th>
		<th>类型</th>
	</tr>
		<c:forEach var="f" items="${list }">
	<tr>
		<th>${f.length }</th>
		<th>${f.time }</th>
		<th>
			<c:if test="${f.son ==-1}"><a href="tolistson.jspx?fileId=${f.id }&son=${f.son}">${f.name }<img src="img/folder.gif"/></a></c:if>
			<c:if test="${f.son ==-2}"><a href="download.jspx?fileId=${f.id }">${f.name }</a></c:if>
		</th>
			
	</tr>
	</c:forEach>
</table>
</body>
</html>
